package com.isay.frameworklib.widget.text;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.LinearLayout;

import com.isay.frameworklib.R;

/**
 * tabView
 * Created by cywu4 on 2018/8/6.
 */

public class FoldTextView extends LinearLayout {


    private ExpandableTextView mExpandTextView;

    public FoldTextView(Context context) {
        super(context);
        initialize();
    }

    public FoldTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
        initialize();
    }

    private void initialize() {
        View.inflate(getContext(), R.layout.view_fold_text, this);
        mExpandTextView = findViewById(R.id.expand_text_view);
    }


    /**
     * 设置显示文字
     *
     * @param text 显示文字
     */
    public void setText(CharSequence text) {
        mExpandTextView.setText(text);
    }



}